home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / lang / SGMLS.lha / SGMLS / test / test001.sgm < prev    next >
Text File  |  1994-07-10  |  1KB  |  39 lines

  1. <!--TEST1.GML: Content parse test: reports 15 errors.-->
  2. <!doctype gdoc [
  3.   <!element gdoc     -  - (body)>
  4.   <!element body     -  - (h1, p*, t1*, tagisbig?)>
  5.   <!element tagisbig -  - (many, tag)>
  6.   <!element t2       -  - EMPTY>
  7.   <!element (h1|p)   -  - (q|#PCDATA)*>
  8.   <!element t1       -  - (#PCDATA|t1|t2|tagisbig)*>
  9.   <!element q        -  - (#PCDATA)>
  10. ]>
  11. <gdoc>
  12. <body>
  13. <h1>A heading with a <q>quotation</q> in it.</h1>
  14. <p>A paragraph with an invalid &entity; reference in it
  15. after the heading.</p>
  16. <p>Another paragraph with a<!bad markup declaration>
  17. and a <?processing instruction> in it.</p>
  18. <p>Content that "looks" like a
  19. <1start-tag> and an </2end-tag> but isn't.</>
  20. <!--PI parsing test.-->
  21. <?pi1
  22. pi2 =
  23. =pi3-- -
  24. >
  25. <p/Here is a syntactically valid (but undefined)
  26. &en.#tity reference to "en.".
  27. (Note that this paragraph ends with
  28. a slash.)/
  29. <!--Test null and implicit tag endings.-->
  30. <t1></>
  31. <t1/</t1>
  32. <t1/<t2>t1data/
  33. <!>
  34. <tagisbigABCDE>
  35. <many worded tag>
  36. <tag#with@junk></many></tagisbig></t1>
  37. </body>
  38. </gdoc>
  39.